package com.hurt.competition.common.util;

import com.hurt.competition.common.contans.CoreContants;
import com.hurt.competition.common.vo.CoreResult;

public class CoreResultBuilder {

    public static CoreResult success(){
        return success(null);
    }

    public static CoreResult success(Object obj){
        CoreResult coreResult = new CoreResult(obj);
        return coreResult;
    }

    public static CoreResult error(String msg){
        CoreResult coreResult = new CoreResult(CoreContants.UNKNOWN,msg);
        return coreResult;
    }
}
